﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LDSP.BRL;

namespace LDSP.UI.User
{
    public partial class Top : System.Web.UI.Page
    {
        public SystemUser LoginAdmin
        {
            get
            {
                return this.Session["LoginAdmin"] as SystemUser;
            }
            set
            {
                this.Session["LoginAdmin"] = value;
            }
        }

        public EnterpriseUser LoginUser
        {
            get
            {
                return this.Session["LoginUser"] as EnterpriseUser;
            }
            set
            {
                this.Session["LoginUser"] = value;
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            string userName = LoginAdmin != null ? LoginAdmin.Name : LoginUser.Name;
            this.Label1.Text = "您好, " + userName + "!";
        }
    }
}